﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/// <summary>
/// 同步协议组件
/// </summary>
[Message(1,"GameSync")]
public abstract class SyncMessageBase:ECSCompoentBase
    {
    }

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Interface)]
public class Message : System.Attribute
{
    /// <summary>
    /// 消息行为
    /// </summary>
    public int MessageCode;
    /// <summary>
    /// 消息名
    /// </summary>
    public string MessageName;

    public Message(int messageCode, string messageName)
    {
        MessageCode = messageCode;
        MessageName = messageName;
    }
}

